package com.wn.utils;

/**
 * @author yellow Docter
 * @date 2024 -06-20
 * @desc
 */
public class AppTest {

    public static void main(String[] args) {

        String [] ids = {"1","2","3"} ;
        //delete from owner where id in (1,2,3)
        StringBuilder sb = new StringBuilder();
        sb.append("delete from owner where id in (");
        for (String id : ids) {
            sb.append("?").append(",");
        }
        //把最后一个逗号切掉
        sb.deleteCharAt(sb.length()-1);
        sb.append(")");
        System.out.println("sb = " + sb);

    }
    
}
